Skip to main content

Android Native Field

Type

widget

Summary

This widget is a native field on Android.

Description

This widget is a native field on Android.

Compatibility and Support

OS

android

Children Properties

Property

NameSummarySyntax
enabledWhether the field is active and responds to user actionset the enabled of <widget> to {true | false} get the enabled of <widget>
keyboardTypeThe type of keyboard associated to the field widget.set the keyboardType of <widget> to <pType> get the keyboardType of <widget>
editableWhether the field can be edited or notset the editable of <widget> to {true | false} get the editable of <widget>
textThe text contained in the field widget.set the text of <widget> to <pText> get the text of <widget>
multilineWhether the field can contain multiple lines or not.set the multiline of <widget> to {true | false} get the multiline of <widget>
textAlignThe horizontal text alignment of the field widget.set the textAlign of <widget> to <pAlign> get the textAlign of <widget>
autoCorrectionTypeThe auto-correction behavior of the field widget.set the autoCorrectionType of <widget> to <pType> get the autoCorrectionType of <widget>
selectedRangeThe range of text of the widget that is selected.set the selectedRange of <widget> to <pRange> get the selectedRange of <widget>
autoCapitalizationTypeThe auto-capitalization behavior of the field widget.set the autoCapitalizationType of <widget> to <pType> get the autoCapitalizationType of <widget>
contentTypeWhat kind of content the field contains.set the contentType of <widget> to <pType> get the contentType of <widget>
verticalTextAlignThe vertical text alignment of the field widget.set the verticalTextAlign of <widget> to <pAlign> get the verticalTextAlign of <widget>
returnKeyTypeThe type of action assigned to the return key on the keyboard associated with this field widget.set the returnKeyType of <widget> to <pType> get the returnKeyType of <widget>
fieldTextColorThe color of the text of the field widget.set the fieldTextColor of <widget> to <pColor> get the fieldTextColor of <widget>
scrollingEnabledWhether the field can be scrolled or not.set the scrollingEnabled of <widget> to {true | false} get the scrollingEnabled of <widget>
passReturnKeyWhether the return key adds a new line to the fieldset the passReturnKey of <widget> to {true|false} get the passReturnKey of <widget>
focusedWhether the field is focused or not.set the focused of <widget> to {true | false} get the focused of <widget>
dataDetectorTypesWhat types of data should be clickable in the field.set the dataDetectorTypes of <widget> to <pType> get the dataDetectorTypes of <widget>

Message

NameSummarySyntax
openFieldSent to an unlocked field when you click or select text in that field.openField
closeFieldSent to a field when the focus is being removed from that field and the field's content has changed.closeField
exitFieldSent to the field with the selection when the selection is being removed from the field, and its contents have not changed.exitField
textChangedSent when the native field widget text is changed.textChanged